package com.top.mall.entity

import android.os.Parcelable
import com.module.lemlin.http.HttpResponseData
import kotlinx.android.parcel.Parcelize
import java.io.Serializable


data class OrderListResponse(
    val data: MutableList<OrderList> = mutableListOf()
) : HttpResponseData()

data class OrderList(
    val deal_type: String,
    val id: Int,
    val order_amount: String,
    val order_goods: MutableList<OrderGood> = mutableListOf(),
    val order_sn: String,
    val order_status: String,
    val pay_status: String,
    val shipping_status: String
)

data class OrderDetailsResponse(
    val data: OrderDetails
) : HttpResponseData()

data class OrderDetails(
    val cash_coupon_price: String,
    val consignee: String,
    val coupon_price: String,
    val createtime: String,
    val deal_type: String,
    val delivery_price: String,
    val delivery_time: String,
    val full_address: Any,
    val goods_price: String,
    val id: Int,
    val mobile: String,
    val order_amount: String,
    val order_goods: MutableList<OrderGood> = mutableListOf(),
    val order_sn: String,
    val order_status: String,
    val pay_code: String,
    val pay_status: String,
    val shipping_price: String,
    val shipping_status: String,
    val shops: Shops,
    val total_amount: String,
    val user_invoice: Any,
    val user_note: String
) : Serializable

data class Shops(
    val address: String,
    val areaAddress: String,
    val city: Int,
    val city_text: String,
    val district: Int,
    val district_text: String,
    val id: Int,
    val province: Int,
    val province_text: String,
    val shop_name: String
) : Serializable

data class OrderGood(
    val cart_id: Int,
    val final_price: String,
    val goods_id: Int,
    val goods_name: String,
    val goods_num: Int,
    val image: String,
    val refund_count: Int,
    val total_price: String
) : Serializable

data class OrderSubmitResponse(
    val data: OrderSubmit
) : HttpResponseData()

data class OrderSubmit(
    val order_amount: Double,
    val order_id: String,
    val order_sn: String
):Serializable